<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>getInstance - Generator - Prails API Documentation</title>
    </head>
    <body>
        <h3 class="P4"><a name="_getInstance"><span/></a>getInstance</h3><h4 class="Heading_20_4"><a name="_Description_"><span/></a>Description:</h4>
        <p class="Text_20_body">
            The Generator class is a Singleton, and thus should only be instanced by using <code>getInstance()</code>. If no instance of this class yet exists, <code>getInstance()</code>
            will create a new instance and return it, else it will return the previously created instance. This method is static.
        </p>
        <h4 class="Heading_20_4"><a name="_Syntax_"><span/></a>Syntax:</h4>
        <p class="Text_20_body">
            <code>Generator::getInstance()</code>
        </p>
        <p class="Text_20_body">
            <span class="T1">Returns:</span>
            always an instance of the Generator class.
        </p>
        <h4 class="Heading_20_4"><a name="_Example_"><span/></a>Example:</h4>
        <p class="Text_20_body">
            The following example will first fetch the current instance of the Generator class and then use it to set the output to be AJAX compatible.
        </p>
        <pre>
            $obj_gen = Generator::getInstance();
            $obj_gen->setIsAjax(true);
        </pre>
        <p class="Text_20_body">
        </p>
    </body>
</html>
